/*
 * Copyright 2017 Baiyyy
 * @(#)TSHumitureMapper.java
 */

package com.byyy.ccts.modules.ysjl.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.byyy.ccts.modules.cc.entity.ccts.TSHumiture;
import com.byyy.ccts.modules.ysjl.entity.YsjlBanner;
import com.byyy.ccts.modules.ysjl.entity.YsjlJielong;
import com.byyy.ccts.modules.ysjl.entity.YsjlJielongDetail;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by DELL on 2018-5-7.
 */
public interface YsjlJielongMapper extends BaseMapper<YsjlJielong> {

    /** 查询滚动展示图 **/
    List<YsjlBanner> queryBanner();

    /** 查询所有接龙 **/
    List<YsjlJielong> queryJielong(String person);

    /** 查询我的接龙 **/
    List<YsjlJielong> queryMyJielong(String person);

    /** 根据ID查询接龙 **/
    YsjlJielong queryJielongById(String id);

    /** 根据接龙ID查询接龙明细 **/
    List<YsjlJielongDetail> queryJielongDetailByPid(String pid);

    /** 根据接龙ID查询最大No **/
    int queryMaxDetailNoByPid(String pid);

}
